package com.anlu.pattern.create.factory.abstractFactory;

import com.anlu.pattern.common.entity.Bag;
import com.anlu.pattern.common.entity.Fruit;
import com.anlu.pattern.common.entity.bag.OrangeBag;
import com.anlu.pattern.common.entity.fruit.Orange;

/**
 * @author anlu
 * @create 2019/11/26
 **/

public class OrangeFactory extends AbstractFactory {

    @Override
    public Fruit getFruit() {
        return new Orange("Peter",50);
    }

    @Override
    public Bag getBag() {
        return new OrangeBag();
    }
}
